#include "RadianWorldLayerManager.h"
#include "RadianLayer.h"
#include "RadianLayerController.h"
//--------------------------------------------------------------------------
RadianWorldLayerManager::RadianWorldLayerManager()
{


}
//--------------------------------------------------------------------------
RadianWorldLayerManager::~RadianWorldLayerManager()
{

}
//--------------------------------------------------------------------------
bool RadianWorldLayerManager::AddLayer(const Ogre::String& layerName,int layerIndex)
{
	/*if(LayerExist(layerName))
		return false;
	
	RadianLayer* radianLayer = new RadianLayer(layerName);
	if(layerIndex == -1)
	{
		size_t layerCount = mWorldLayerMap.count();
		layerIndex += layerCount;
	}

	radianLayer->SetIndex(layerIndex);
	mWorldLayerMap[layerName] = radianLayer;*/
	return true;
}
//--------------------------------------------------------------------------
bool RadianWorldLayerManager::RemoveLayer(const Ogre::String& layerName)
{
	/*if(LayerExist(layerName))
	{
		mWorldLayerMap.erase(layerName);
	}*/

	return false;
}
//--------------------------------------------------------------------------
bool RadianWorldLayerManager::RemoveLayer(int index)
{
	//WorldLayerIterator layerIt = mWorldLayerMap.begin();

	//while(layerIt!= mWorldLayerMap.end())
	//{
	//	if(layerIt->second->GetIndex() == index)
	//	{	
	//		mWorldLayerMap.erase(layerIt);
	//	}
	//}

	return true;
}
//--------------------------------------------------------------------------
RadianLayer* RadianWorldLayerManager::GetLayer(int index)
{
	/*WorldLayerIterator layerIt = mWorldLayerMap.begin();
	
	while(layerIt!= mWorldLayerMap.end())
	{
		if(layerIt->second->GetIndex() == index)
		{	
			return layerIt->second;
		}
	}*/

	return NULL;
}
//--------------------------------------------------------------------------
bool RadianWorldLayerManager::LayerExist(const Ogre::String& layerName)
{
	return mWorldLayerMap.find(layerName) != mWorldLayerMap.end();
}
//--------------------------------------------------------------------------